<?php
use Illuminate\Support\Facades\DB;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//警员登陆
Route::get('/', function () {
    if (Auth::check()) {
        return redirect('admin');
        // The user is logged in...
    }else{
        return view('auth/login');
    }
});
//企业登陆
Route::get('/qiye', function () {
    if (Auth::check()) {
        return redirect('admin');
        // The user is logged in...
    }else{
        $city = db::table('area')->where('cid','0')->get();
        $type = db::table('unit_type')->get();
        return view('auth/qiye_login',['city'=>$city,'type'=>$type]);
    }
});
//注册
Route::any('/qiye_register',['uses' => 'PublicController@qiye_register']);
Route::any('/getArea',['uses' => 'PublicController@getArea']);
//uk相关
Route::any('uk/result',['uses' => 'UkController@result']);
Route::any('uk/check_act',['uses' => 'UkController@check_act']);//检测uk是否已激活
Route::any('uk/check_reg',['uses' => 'UkController@check_reg']);//检测uk是否已绑定
Route::any('uk/check_reg2',['uses' => 'UkController@check_reg2']);//检测uk是否已绑定
Route::any('uk/register_qiye',['uses' => 'UkController@register_qiye']);//企业注册
Route::any('uk/register_minjing',['uses' => 'UkController@register_minjing']);//民警注册
//检查重名
Route::post('/check_name',['uses' => 'PublicController@check_name']);


Route::get('admin/index', ['as' => 'admin.index', 'middleware' => ['auth','menu'], 'uses'=>'Admin\\IndexController@index']);
Auth::routes();

Route::match(['get', 'post'], '/save_user/{id}', 'UserController@save');

$router->group(['namespace' => 'Admin', 'middleware' => ['auth','authAdmin','menu']], function () {
    //首页
    Route::get('admin/index/home', [ 'uses' => 'IndexController@home']);
    //uk管理
    Route::match(['get', 'post'], 'admin/uk/index/{type?}/{id?}', [ 'uses' => 'UkController@index']); //企业uk列表
    Route::match(['get', 'post'], 'admin/uk/add', [ 'uses' => 'UkController@add']); //uk初始化

    Route::get('admin/uk/index2', [ 'uses' => 'UkController@index2']); //警员uk列表
    Route::match(['get', 'post'], 'admin/uk/add2', [ 'uses' => 'UkController@add2']); //uk初始化
    //权限管理路由
    Route::get('admin/permission/index/{cid?}', ['as' => 'admin.permission.index', 'uses' => 'PermissionController@index']); //列表
    Route::match(['get', 'post'],'admin/permission/add/{cid}', ['as' => 'admin.permission.add', 'uses' => 'PermissionController@add']);//添加
    Route::match(['get','post'],'admin/permission/edit/{id}', ['as' => 'admin.permission.edit', 'uses' => 'PermissionController@edit']); //修改
    Route::get('admin/permission/del/{id}', ['as' => 'admin.permission.del', 'uses' => 'PermissionController@del']); //删除
    Route::post('admin/permission/save_sort',['uses' => 'PermissionController@save_sort']);

    //地区管理
    Route::get('admin/area/index/{cid?}', ['as' => 'admin.area.index', 'uses' => 'AreaController@index']); //列表
    Route::match(['get', 'post'],'admin/area/add/{cid}', ['as' => 'admin.area.add', 'uses' => 'AreaController@add']);//添加
    Route::match(['get','post'],'admin/area/edit/{id}', ['as' => 'admin.area.edit', 'uses' => 'AreaController@edit']); //修改
    Route::get('admin/area/del/{id}', ['as' => 'admin.area.del', 'uses' => 'AreaController@del']); //删除
    Route::post('admin/area/save_sort',['uses' => 'AreaController@save_sort']);
    Route::get('admin/getArea',['uses' => 'AreaController@getArea']);

    //角色管理路由
    Route::get('admin/role/index', ['as' => 'admin.role.index', 'uses' => 'RoleController@index']);
    Route::match(['get', 'post'],'admin/role/edit/{id}', ['as' => 'admin.role.edit', 'uses' => 'RoleController@edit']); //修改
    Route::match(['get', 'post'],'admin/role/add', ['as' => 'admin.role.add', 'uses' => 'RoleController@add']); //添加
    Route::get('admin/role/del/{id}', ['as' => 'admin.role.del', 'uses' => 'RoleController@del']); //删除

    //用户管理路由
    Route::get('admin/user/index', ['as' => 'admin.user.index', 'uses' => 'UserController@index']);//列表
    Route::match(['get','post'],'admin/user/edit/{id}', ['as' => 'admin.user.edit', 'uses' => 'UserController@edit']); //修改
    Route::match(['get','post'],'admin/user/edit_pwd/{id}', ['as' => 'admin.user.edit', 'uses' => 'UserController@edit_pwd']); //修改密码
    Route::match(['get','post'],'admin/user/add', ['as' => 'admin.user.add', 'uses' => 'UserController@add']); //添加
    Route::get('admin/user/del/{id}', ['as' => 'admin.user.del', 'uses' => 'UserController@del']); //删除
    Route::match(['get','post'],'admin/user/edit_area/{id}', ['as' => 'admin.user.edit_area', 'uses' => 'UserController@edit_area']); //编辑管理地区

    //单位管理
    Route::match(['get','post'],'admin/units/index', ['as' => 'admin.units.index', 'uses' => 'UnitsController@index']);//全市实有单位查询
    Route::match(['get','post'],'admin/units/tab/{id}', ['as' => 'admin.units.tab', 'uses' => 'UnitsController@tab']); //tab切换
    Route::match(['get','post'],'admin/units/tab2/{id}', ['as' => 'admin.units.tab2', 'uses' => 'UnitsController@tab2']); //gis地图tab切换
    Route::match(['get','post'],'admin/units/jiben', ['as' => 'admin.units.jiben', 'uses' => 'UnitsController@jiben']);//单位基本信息管理
    Route::get('admin/units/view/{id}', ['as' => 'admin.units.view', 'uses' => 'UnitsController@view']);//查看基本信息
    Route::match(['get','post'],'admin/units/mubiao', ['as' => 'admin.units.mubiao', 'uses' => 'UnitsController@mubiao']);//重要目标管理
    Route::match(['get','post'],'admin/units/important', ['as' => 'admin.units.important', 'uses' => 'UnitsController@important']);//重要单位管理
    Route::match(['get','post'],'admin/units/guanli/{id}', ['as' => 'admin.units.guanli', 'uses' => 'UnitsController@guanli']); //管理单位
    Route::match(['get','post'],'admin/units/edit/{id}', ['as' => 'admin.units.edit', 'uses' => 'UnitsController@edit']); //修改
    Route::match(['get','post'],'admin/units/add', ['as' => 'admin.units.add', 'uses' => 'UnitsController@add']); //添加
    Route::get('admin/units/del/{id}', ['as' => 'admin.units.del', 'uses' => 'UnitsController@del']); //删除
    Route::get('admin/units/zhuxiao/{id}', ['as' => 'admin.units.zhuxiao', 'uses' => 'UnitsController@zhuxiao']); //恢复
    Route::get('admin/units/huifu/{id}', ['as' => 'admin.units.huifu', 'uses' => 'UnitsController@huifu']); //恢复
    Route::get('admin/units/swzd/{id?}/{jibie?}', ['uses' => 'UnitsController@swzd']);//设为重点
    Route::get('admin/units/qxzd/{id}', ['uses' => 'UnitsController@qxzd']);//取消重点
    Route::get('admin/units/renling_units', ['uses' => 'UnitsController@renling_units']);//警务责任区认领
    Route::get('admin/units/renling/{id}', ['uses' => 'UnitsController@renling']);//认领单位
    Route::get('admin/units/shifang_units', ['uses' => 'UnitsController@shifang_units']);//警务责任区释放
    Route::get('admin/units/shifang/{id}', ['uses' => 'UnitsController@shifang']);//释放单位
    Route::get('admin/units/biangeng_units', ['uses' => 'UnitsController@biangeng_units']);//警务责任区变更
    Route::match(['get','post'],'admin/units/biangeng/{id}', ['uses' => 'UnitsController@biangeng']);//变更单位
    Route::get('admin/units/closed', ['uses' => 'UnitsController@closed']);//已注销单位列表

    Route::get('admin/units/update/{id}', ['uses' => 'UnitsController@update']);//更新单位信息（提交至APP审核）

    Route::get('admin/units/tuceng', ['as' => 'admin.units.tuceng', 'uses' => 'UnitsController@tuceng']);//单位图层展现


    Route::get('admin/units/get_units', ['as' => 'admin.units.get_units', 'uses' => 'UnitsController@get_units']);//获取单位数据
    Route::get('admin/units/get_zdunits', ['as' => 'admin.units.get_zdunits', 'uses' => 'UnitsController@get_zdunits']);//获取重点单位数据
    Route::match(['get','post'],'admin/units/get_units_list', ['as' => 'admin.units.get_units_list', 'uses' => 'UnitsController@get_units_list']);//根据地区id获取单位数据


    Route::get('admin/units/type', ['as' => 'admin.units.type', 'uses' => 'UnitsController@type']);//单位类型
    Route::match(['get','post'],'admin/units/add_type', ['as' => 'admin.units.add_type', 'uses' => 'UnitsController@add_type']); //添加单位类型
    Route::match(['get','post'],'admin/units/edit_type/{id}', ['as' => 'admin.units.edit_type', 'uses' => 'UnitsController@edit_type']); //修改单位类型
    Route::get('admin/units/del_type/{id}', ['as' => 'admin.units.del_type', 'uses' => 'UnitsController@del_type']); //删除单位类型

    Route::get('admin/units/xinxi/{id}', ['as' => 'admin.units.xinxi', 'uses' => 'UnitsController@xinxi']);//信息列表
    Route::match(['get','post'],'admin/units/add_xinxi/{id}', ['as' => 'admin.units.add_xinxi', 'uses' => 'UnitsController@add_xinxi']); //添加
    Route::match(['get','post'],'admin/units/edit_xinxi/{id}', ['as' => 'admin.units.edit_xinxi', 'uses' => 'UnitsController@edit_xinxi']); //修改
    Route::get('admin/units/del_xinxi/{id}', ['as' => 'admin.units.del_xinxi', 'uses' => 'UnitsController@del_xinxi']); //删除

    Route::get('admin/units/faren/{id}', ['as' => 'admin.units.faren', 'uses' => 'UnitsController@faren']);//法人列表
    Route::match(['get','post'],'admin/units/add_faren/{id}', ['as' => 'admin.units.add_faren', 'uses' => 'UnitsController@add_faren']); //添加法人
    Route::match(['get','post'],'admin/units/edit_faren/{id}', ['as' => 'admin.units.edit_faren', 'uses' => 'UnitsController@edit_faren']); //修改法人
    Route::get('admin/units/del_faren/{id}', ['as' => 'admin.units.del_faren', 'uses' => 'UnitsController@del_faren']); //删除法人

    Route::get('admin/units/baowei/{id}', ['as' => 'admin.units.baowei', 'uses' => 'UnitsController@baowei']);//保卫人员列表
    Route::match(['get','post'],'admin/units/add_baowei/{id}', ['as' => 'admin.units.add_baowei', 'uses' => 'UnitsController@add_baowei']); //添加保卫人员
    Route::match(['get','post'],'admin/units/edit_baowei/{id}', ['as' => 'admin.units.edit_baowei', 'uses' => 'UnitsController@edit_baowei']); //修改保卫人员
    Route::get('admin/units/del_baowei/{id}', ['as' => 'admin.units.del_baowei', 'uses' => 'UnitsController@del_baowei']); //删除保卫人员

    Route::get('admin/units/jigou/{id}', ['as' => 'admin.units.jigou', 'uses' => 'UnitsController@jigou']);//保卫机构列表
    Route::match(['get','post'],'admin/units/add_jigou/{id}', ['as' => 'admin.units.add_jigou', 'uses' => 'UnitsController@add_jigou']); //添加保卫机构
    Route::match(['get','post'],'admin/units/edit_jigou/{id}', ['as' => 'admin.units.edit_jigou', 'uses' => 'UnitsController@edit_jigou']); //修改保卫机构
    Route::get('admin/units/del_jigou/{id}', ['as' => 'admin.units.del_jigou', 'uses' => 'UnitsController@del_jigou']); //删除保卫机构

    Route::get('admin/units/zybw/{id}', ['as' => 'admin.units.zybw', 'uses' => 'UnitsController@zybw']);//重要部位列表
    Route::match(['get','post'],'admin/units/add_zybw/{id}', ['as' => 'admin.units.add_zybw', 'uses' => 'UnitsController@add_zybw']); //添加重要部位
    Route::match(['get','post'],'admin/units/edit_zybw/{id}', ['as' => 'admin.units.edit_zybw', 'uses' => 'UnitsController@edit_zybw']); //修改重要部位
    Route::get('admin/units/del_zybw/{id}', ['as' => 'admin.units.del_zybw', 'uses' => 'UnitsController@del_zybw']); //删除重要部位

    Route::get('admin/units/gzry/{id}', ['as' => 'admin.units.gzry', 'uses' => 'UnitsController@gzry']);//重要部位工作人员列表
    Route::match(['get','post'],'admin/units/add_gzry/{id}', ['as' => 'admin.units.add_gzry', 'uses' => 'UnitsController@add_gzry']); //添加工作人员
    Route::match(['get','post'],'admin/units/edit_gzry/{id}', ['as' => 'admin.units.edit_gzry', 'uses' => 'UnitsController@edit_gzry']); //修改工作人员
    Route::get('admin/units/del_gzry/{id}', ['as' => 'admin.units.del_gzry', 'uses' => 'UnitsController@del_gzry']); //删除工作人员

    Route::get('admin/units/anfang/{id}', ['as' => 'admin.units.anfang', 'uses' => 'UnitsController@anfang']);//安防设施列表
    Route::match(['get','post'],'admin/units/add_anfang/{id}', ['as' => 'admin.units.add_anfang', 'uses' => 'UnitsController@add_anfang']); //添加安防设施
    Route::match(['get','post'],'admin/units/edit_anfang/{id}', ['as' => 'admin.units.edit_anfang', 'uses' => 'UnitsController@edit_anfang']); //修改安防设施
    Route::get('admin/units/del_anfang/{id}', ['as' => 'admin.units.del_anfang', 'uses' => 'UnitsController@del_anfang']); //删除安防设施

    Route::get('admin/units/zdry/{id}', ['as' => 'admin.units.zdry', 'uses' => 'UnitsController@zdry']);//重点人员列表
    Route::match(['get','post'],'admin/units/add_zdry/{id}', ['as' => 'admin.units.add_zdry', 'uses' => 'UnitsController@add_zdry']); //添加重点人员
    Route::match(['get','post'],'admin/units/edit_zdry/{id}', ['as' => 'admin.units.edit_zdry', 'uses' => 'UnitsController@edit_zdry']); //修改重点人员
    Route::get('admin/units/del_zdry/{id}', ['as' => 'admin.units.del_zdry', 'uses' => 'UnitsController@del_zdry']); //删除重点人员

    Route::get('admin/units/tfsj/{id}', ['as' => 'admin.units.tfsj', 'uses' => 'UnitsController@tfsj']);//突发事件处置预案列表
    Route::match(['get','post'],'admin/units/add_tfsj/{id}', ['as' => 'admin.units.add_tfsj', 'uses' => 'UnitsController@add_tfsj']); //添加突发事件处置预案
    Route::match(['get','post'],'admin/units/edit_tfsj/{id}', ['as' => 'admin.units.edit_tfsj', 'uses' => 'UnitsController@edit_tfsj']); //修改突发事件处置预案
    Route::get('admin/units/del_tfsj/{id}', ['as' => 'admin.units.del_tfsj', 'uses' => 'UnitsController@del_tfsj']); //删除突发事件处置预案

    Route::get('admin/units/zdqk/{id}', ['as' => 'admin.units.zdqk', 'uses' => 'UnitsController@zdqk']);//重大情况列表
    Route::match(['get','post'],'admin/units/add_zdqk/{id}', ['as' => 'admin.units.add_zdqk', 'uses' => 'UnitsController@add_zdqk']); //添加重大情况
    Route::match(['get','post'],'admin/units/edit_zdqk/{id}', ['as' => 'admin.units.edit_zdqk', 'uses' => 'UnitsController@edit_zdqk']); //修改重大情况
    Route::get('admin/units/del_zdqk/{id}', ['as' => 'admin.units.del_zdqk', 'uses' => 'UnitsController@del_zdqk']); //删除重大情况

    Route::get('admin/units/jiancha/{id}', ['as' => 'admin.units.jiancha', 'uses' => 'UnitsController@jiancha']);//安全检查列表
    Route::match(['get','post'],'admin/units/add_jiancha/{id}', ['as' => 'admin.units.add_jiancha', 'uses' => 'UnitsController@add_jiancha']); //添加安全检查
    Route::match(['get','post'],'admin/units/edit_jiancha/{id}', ['as' => 'admin.units.edit_jiancha', 'uses' => 'UnitsController@edit_jiancha']); //修改安全检查
    Route::get('admin/units/del_jiancha/{id}', ['as' => 'admin.units.del_jiancha', 'uses' => 'UnitsController@del_jiancha']); //删除安全检查

    Route::get('admin/units/zhidu/{id}', ['as' => 'admin.units.zhidu', 'uses' => 'UnitsController@zhidu']);//保卫制度列表
    Route::match(['get','post'],'admin/units/add_zhidu/{id}', ['as' => 'admin.units.add_zhidu', 'uses' => 'UnitsController@add_zhidu']); //添加保卫制度
    Route::match(['get','post'],'admin/units/edit_zhidu/{id}', ['as' => 'admin.units.edit_zhidu', 'uses' => 'UnitsController@edit_zhidu']); //修改保卫制度
    Route::get('admin/units/del_zhidu/{id}', ['as' => 'admin.units.del_zhidu', 'uses' => 'UnitsController@del_zhidu']); //删除保卫制度

    Route::get('admin/units/history/{id}', ['as' => 'admin.units.history', 'uses' => 'UnitsController@history']);//历史变更记录
    Route::match(['get','post'],'admin/units/view_history/{id}', ['as' => 'admin.units.view_history', 'uses' => 'UnitsController@view_history']); //查看历史变更记录
    Route::get('admin/units/del_history/{id}', ['as' => 'admin.units.del_history', 'uses' => 'UnitsController@del_history']); //删除历史变更记录

    //安全检查
    Route::match(['get','post'],'admin/jiancha/index',[ 'uses'=>'JianchaController@index']);//单位列表
    Route::match(['get','post'],'admin/jiancha/detail/{id}', [ 'uses' => 'JianchaController@detail']); //查看
    Route::get('admin/jiancha/jiancha_list/{id}', [ 'uses' => 'JianchaController@jiancha_list']);//安全检查列表
    Route::match(['get','post'],'admin/jiancha/add_jiancha/{id}', [ 'uses' => 'JianchaController@add_jiancha']); //添加安全检查
    Route::match(['get','post'],'admin/jiancha/edit_jiancha/{id}', [ 'uses' => 'JianchaController@edit_jiancha']); //修改安全检查
    Route::get('admin/jiancha/del_jiancha/{id}', [ 'uses' => 'JianchaController@del_jiancha']); //删除安全检查

    //组织管理
    Route::get('admin/org/index/{id?}', ['as' => 'admin.org.index', 'uses' => 'OrgController@index']);//组织列表
    Route::match(['get','post'],'admin/org/add', ['as' => 'admin.org.add', 'uses' => 'OrgController@add']); //添加
    Route::match(['get','post'],'admin/org/edit/{id}', ['as' => 'admin.org.edit', 'uses' => 'OrgController@edit']); //修改
    Route::get('admin/org/del/{id}', ['as' => 'admin.org.del', 'uses' => 'OrgController@del']); //删除

    Route::get('admin/org/bumen/{id}', ['as' => 'admin.org.bumen', 'uses' => 'OrgController@bumen']);//组织部门
    Route::match(['get','post'],'admin/org/add_bumen/{id}', ['as' => 'admin.org.add_bumen', 'uses' => 'OrgController@add_bumen']); //添加部门
    Route::match(['get','post'],'admin/org/edit_bumen/{id}', ['as' => 'admin.org.edit_bumen', 'uses' => 'OrgController@edit_bumen']); //修改部门
    Route::get('admin/org/del_bumen/{id}', ['as' => 'admin.org.del_bumen', 'uses' => 'OrgController@del_bumen']); //删除部门

    Route::get('admin/org/wuhan/{pid?}/{id?}', ['as' => 'admin.org.wuhan', 'uses' => 'OrgController@wuhan']);//武汉市
    Route::get('admin/org/shiyan/{pid?}/{id?}', ['as' => 'admin.org.shiyan', 'uses' => 'OrgController@shiyan']);//武汉市
    Route::get('admin/org/xiangfan/{pid?}/{id?}', ['as' => 'admin.org.xiangfan', 'uses' => 'OrgController@xiangfan']);//武汉市
    Route::get('admin/org/jingmen/{pid?}/{id?}', ['as' => 'admin.org.jingmen', 'uses' => 'OrgController@jingmen']);//武汉市
    Route::get('admin/org/xiaogan/{pid?}/{id?}', ['as' => 'admin.org.xiaogan', 'uses' => 'OrgController@xiaogan']);//武汉市
    Route::get('admin/org/huanggang/{pid?}/{id?}', ['as' => 'admin.org.huanggang', 'uses' => 'OrgController@huanggang']);//武汉市
    Route::get('admin/org/ezhou/{pid?}/{id?}', ['as' => 'admin.org.ezhou', 'uses' => 'OrgController@ezhou']);//武汉市
    Route::get('admin/org/huangshi/{pid?}/{id?}', ['as' => 'admin.org.huangshi', 'uses' => 'OrgController@huangshi']);//武汉市
    Route::get('admin/org/xianning/{pid?}/{id?}', ['as' => 'admin.org.xianning', 'uses' => 'OrgController@xianning']);//武汉市
    Route::get('admin/org/jingzhou/{pid?}/{id?}', ['as' => 'admin.org.jingzhou', 'uses' => 'OrgController@jingzhou']);//武汉市
    Route::get('admin/org/yichang/{pid?}/{id?}', ['as' => 'admin.org.yichang', 'uses' => 'OrgController@yichang']);//武汉市
    Route::get('admin/org/suizhou/{pid?}/{id?}', ['as' => 'admin.org.suizhou', 'uses' => 'OrgController@suizhou']);//武汉市
    Route::get('admin/org/xiantao/{pid?}/{id?}', ['as' => 'admin.org.xiantao', 'uses' => 'OrgController@xiantao']);//武汉市
    Route::get('admin/org/tianmen/{pid?}/{id?}', ['as' => 'admin.org.tianmen', 'uses' => 'OrgController@tianmen']);//武汉市
    Route::get('admin/org/qianjiang/{pid?}/{id?}', ['as' => 'admin.org.qianjiang', 'uses' => 'OrgController@qianjiang']);//武汉市
    Route::get('admin/org/shenlong/{pid?}/{id?}', ['as' => 'admin.org.shenlong', 'uses' => 'OrgController@shenlong']);//武汉市
    Route::get('admin/org/enshi/{pid?}/{id?}', ['as' => 'admin.org.enshi', 'uses' => 'OrgController@enshi']);//武汉市

    Route::match(['get','post'],'admin/org/units/{id}', ['as' => 'admin.org.units', 'uses' => 'OrgController@units']);//管辖单位
    Route::get('admin/org/view_unit/{id}', ['as' => 'admin.org.view_unit', 'uses' => 'OrgController@view_unit']);//基本情况
    Route::get('admin/org/view_jiancha/{id}', ['as' => 'admin.org.view_jiancha', 'uses' => 'OrgController@view_jiancha']);//检查情况

    Route::match(['get','post'],'admin/units/getjwd', ['as' => 'admin.units.getjwd', 'uses' => 'UnitsController@getjwd']); //获取经纬度

    //地图相关
    Route::match(['get','post'],'admin/units/cxzd', ['as' => 'admin.units.cxzd','uses' => 'UnitsController@cxzd']);//是否重点单位


    //内保查询
    Route::any('admin/safe/zybwcx', ['as' => 'admin.safe.zybwcx', 'uses' => 'SafeController@zybwcx']);//重要部位查询
    Route::get('admin/safe/zybw_list/{id}', ['as' => 'admin.safe.zybw_list', 'uses' => 'SafeController@zybw_list']);//重要部位列表
    Route::get('admin/safe/ckzybw/{id}', ['as' => 'admin.safe.ckzybw', 'uses' => 'SafeController@ckzybw']); //查看重要部位
    Route::get('admin/safe/gzry_list/{id}', ['as' => 'admin.safe.gzry_list', 'uses' => 'SafeController@gzry_list']);//工作人员列表
    Route::get('admin/safe/ckgzry/{id}', ['as' => 'admin.safe.ckgzry', 'uses' => 'SafeController@ckgzry']); //查看重要部位

    Route::any('admin/safe/afsscx', ['as' => 'admin.safe.afsscx', 'uses' => 'SafeController@afsscx']);//安防设施查询
    Route::get('admin/safe/ckafss/{id}', ['as' => 'admin.safe.ckafss', 'uses' => 'SafeController@ckafss']); //查看安防设施


    Route::any('admin/safe/bwjgcx', ['as' => 'admin.safe.bwjgcx', 'uses' => 'SafeController@bwjgcx']);//保卫机构查询
    Route::get('admin/safe/bwjg_list/{id}', ['as' => 'admin.safe.bwjg_list', 'uses' => 'SafeController@bwjg_list']);//保卫机构列表
    Route::get('admin/safe/ckbwjg/{id}', ['as' => 'admin.safe.ckbwjg', 'uses' => 'SafeController@ckbwjg']); //查看保卫机构

    Route::any('admin/safe/bwllcx', ['as' => 'admin.safe.bwllcx', 'uses' => 'SafeController@bwllcx']);//保卫力量查询
    Route::get('admin/safe/bwll_list/{id}', ['as' => 'admin.safe.bwll_list', 'uses' => 'SafeController@bwll_list']);//保卫力量列表
    Route::get('admin/safe/ckbwll/{id}', ['as' => 'admin.safe.ckbwll', 'uses' => 'SafeController@ckbwll']); //查看保卫力量

    Route::any('admin/safe/bwzdcx', ['as' => 'admin.safe.bwzdcx', 'uses' => 'SafeController@bwzdcx']);//保卫制度查询
    Route::get('admin/safe/bwzd_list/{id}', ['as' => 'admin.safe.bwzd_list', 'uses' => 'SafeController@bwzd_list']);//保卫制度列表
    Route::get('admin/safe/ckbwzd/{id}', ['as' => 'admin.safe.ckbwzd', 'uses' => 'SafeController@ckbwzd']); //查看保卫制度

    Route::any('admin/safe/aqjccx', ['as' => 'admin.safe.aqjccx', 'uses' => 'SafeController@aqjccx']);//安全检查查询
    Route::get('admin/safe/aqjc_list/{id}', ['as' => 'admin.safe.aqjc_list', 'uses' => 'SafeController@aqjc_list']);//安全检查列表
    Route::get('admin/safe/ckaqjc/{id}', ['as' => 'admin.safe.ckaqjc', 'uses' => 'SafeController@ckaqjc']); //查看安全检查

    Route::any('admin/safe/xsjbcx', ['as' => 'admin.safe.xsjbcx', 'uses' => 'SafeController@xsjbcx']);//线索举报查询
    Route::get('admin/safe/ckxsjb/{id}', ['as' => 'admin.safe.ckxsjb', 'uses' => 'SafeController@ckxsjb']); //查看线索举报

    Route::any('admin/safe/aqyhcx', ['as' => 'admin.safe.aqyhcx', 'uses' => 'SafeController@aqyhcx']);//安全隐患查询
    Route::get('admin/safe/aqyh_list/{id}', ['as' => 'admin.safe.aqyh_list', 'uses' => 'SafeController@aqyh_list']);//安全隐患列表
    Route::get('admin/safe/ckaqyh/{id}', ['as' => 'admin.safe.ckaqyh', 'uses' => 'SafeController@ckaqyh']); //查看安全隐患

    Route::any('admin/safe/badyscx', ['as' => 'admin.safe.badyscx', 'uses' => 'SafeController@badyscx']);//不安定因素查询
    Route::get('admin/safe/badys_list/{id}', ['as' => 'admin.safe.badys_list', 'uses' => 'SafeController@badys_list']);//不安定因素列表
    Route::get('admin/safe/ckbadys/{id}', ['as' => 'admin.safe.ckbadys', 'uses' => 'SafeController@ckbadys']); //查看不安定因素

    Route::any('admin/safe/zhsgcx', ['as' => 'admin.safe.zhsgcx', 'uses' => 'SafeController@zhsgcx']);//灾害事故查询
    Route::get('admin/safe/zhsg_list/{id}', ['as' => 'admin.safe.zhsg_list', 'uses' => 'SafeController@zhsg_list']);//灾害事故列表
    Route::get('admin/safe/ckzhsg/{id}', ['as' => 'admin.safe.ckzhsg', 'uses' => 'SafeController@ckzhsg']); //查看灾害事故

    Route::any('admin/safe/jcxxcx', ['as' => 'admin.safe.jcxxcx', 'uses' => 'SafeController@jcxxcx']);//奖惩信息查询
    Route::get('admin/safe/jcxx_list/{id}', ['as' => 'admin.safe.jcxx_list', 'uses' => 'SafeController@jcxx_list']);//奖惩信息列表
    Route::get('admin/safe/ckjcxx/{id}', ['as' => 'admin.safe.ckjcxx', 'uses' => 'SafeController@ckjcxx']); //查看奖惩信息

    Route::any('admin/safe/zdgwcx', ['as' => 'admin.safe.zdgwcx', 'uses' => 'SafeController@zdgwcx']);//重点岗位人员查询
    Route::get('admin/safe/ckzdgw/{id}', ['as' => 'admin.safe.ckzdgw', 'uses' => 'SafeController@ckzdgw']); //查看重点岗位人员


    Route::match(['get','post'],'admin/safe/jqsb',[ 'uses'=>'SafeController@jqsb']);//警情上报查询

    Route::match(['get','post'],'admin/safe/rysh',[ 'uses'=>'SafeController@rysh']);//人员核查查询


    Route::match(['get','post'],'admin/safe/leida',[ 'uses'=>'SafeController@leida']);//企业雷达图



    //接口开发说明
    Route::get('admin/jiekou/qiyou', ['as' => 'admin.jiekou.qiyou', 'uses' => 'JiekouController@qiyou']); //散装汽油接口
    Route::get('admin/jiekou/kuaidi', ['as' => 'admin.jiekou.kuaidi', 'uses' => 'JiekouController@kuaidi']); //快递接口
    Route::get('admin/jiekou/keyun', ['as' => 'admin.jiekou.keyun', 'uses' => 'JiekouController@keyun']); //客运接口
    Route::get('admin/jiekou/baoan', ['as' => 'admin.jiekou.baoan', 'uses' => 'JiekouController@baoan']); //保安接口
    Route::get('admin/jiekou/shuju', ['as' => 'admin.jiekou.shuju', 'uses' => 'JiekouController@shuju']); //数据字典

    //警情研判
    Route::match(['get','post'],'admin/yanpan/mark', ['as' => 'admin.yanpan.mark', 'uses' => 'YanpanController@mark']); //积分项设置

    Route::get('admin/yanpan/rule', ['as' => 'admin.yanpan.rule', 'uses' => 'YanpanController@rule']); //规则设置列表
    Route::match(['get','post'],'admin/yanpan/add_rule', ['as' => 'admin.yanpan.add_rule', 'uses' => 'YanpanController@add_rule']); //添加研判规则
    Route::match(['get','post'],'admin/yanpan/edit_rule/{id}', ['as' => 'admin.yanpan.edit_rule', 'uses' => 'YanpanController@edit_rule']); //修改研判规则
    Route::get('admin/yanpan/del_rule/{id}', ['as' => 'admin.yanpan.del_rule', 'uses' => 'YanpanController@del_rule']); //删除研判规则

    Route::get('admin/yanpan/color', ['as' => 'admin.yanpan.color', 'uses' => 'YanpanController@color']); //颜色规则设置
    Route::match(['get','post'],'admin/yanpan/add_color', ['as' => 'admin.yanpan.add_color', 'uses' => 'YanpanController@add_color']); //添加颜色规则
    Route::match(['get','post'],'admin/yanpan/edit_color/{id}', ['as' => 'admin.yanpan.edit_color', 'uses' => 'YanpanController@edit_color']); //修改颜色规则
    Route::get('admin/yanpan/del_color/{id}', ['as' => 'admin.yanpan.del_color', 'uses' => 'YanpanController@del_color']); //删除颜色规则

    Route::match(['get','post'],'admin/yanpan/fense', ['as' => 'admin.yanpan.fense', 'uses' => 'YanpanController@fense']); //单位分色展示
    Route::get('admin/yanpan/view/{id}', ['as' => 'admin.yanpan.view', 'uses' => 'YanpanController@view']);//查看基本信息
    Route::match(['get','post'],'admin/yanpan/save_color/{id}',[ 'uses'=>'YanpanController@save_color']);//设置颜色

    Route::get('admin/yanpan/dw_jiankong', ['as' => 'admin.yanpan.dw_jiankong', 'uses' => 'YanpanController@dw_jiankong']); //单位监控
    Route::get('admin/yanpan/get_units', ['as' => 'admin.yanpan.get_units', 'uses' => 'YanpanController@get_units']);//获取单位数据
    Route::match(['get','post'],'admin/yanpan/zdry_jiankong', ['as' => 'admin.yanpan.zdry_jiankong', 'uses' => 'YanpanController@zdry_jiankong']); //重点人员监控
    Route::get('admin/yanpan/view_zdry/{id}', ['as' => 'admin.yanpan.view_zdry', 'uses' => 'YanpanController@view_zdry']); //查看重点人员

    Route::match(['get','post'],'admin/yanpan/qiyexinyong', ['uses' => 'YanpanController@qiyexinyong']); //企业信用
    Route::match(['get','post'],'admin/yanpan/youliang', ['uses' => 'YanpanController@youliang']); //优良记录
    Route::match(['get','post'],'admin/yanpan/fumian', ['uses' => 'YanpanController@fumian']); //负面记录
    Route::match(['get','post'],'admin/yanpan/heimingdan', ['uses' => 'YanpanController@heimingdan']); //受惩黑名单

    Route::match(['get','post'],'admin/yanpan/jingzong', ['uses' => 'YanpanController@jingzong']); //警综平台
    Route::match(['get','post'],'admin/yanpan/jiejing', ['uses' => 'YanpanController@jiejing']); //110接警数据
    Route::match(['get','post'],'admin/yanpan/yuqing', ['uses' => 'YanpanController@yuqing']); //舆情信息
    Route::match(['get','post'],'admin/yanpan/anjian', ['uses' => 'YanpanController@anjian']); //案件信息
    
    Route::match(['get','post'],'admin/yanpan/kaoping', ['uses' => 'YanpanController@kaoping']); //综合考评
    Route::match(['get','post'],'admin/yanpan/fx_pingjia', ['uses' => 'YanpanController@fx_pingjia']); //风险度评价
    Route::match(['get','post'],'admin/yanpan/add_fxdpg', [ 'uses' => 'YanpanController@add_fxdpg']);//添加风险度评价
    Route::match(['get','post'],'admin/yanpan/edit_fxdpg', [ 'uses' => 'YanpanController@edit_fxdpg']);//修改风险度评价
    Route::match(['get','post'],'admin/yanpan/fengxian', ['uses' => 'YanpanController@fengxian']); //行业风险
    Route::match(['get','post'],'admin/yanpan/edit_jiejing', [ 'uses' => 'YanpanController@edit_jiejing']);//查看110接警数据
    Route::match(['get','post'],'admin/yanpan/add_yuqing', [ 'uses' => 'YanpanController@add_yuqing']);//添加风险度评价
    Route::match(['get','post'],'admin/yanpan/edit_yuqing', [ 'uses' => 'YanpanController@edit_yuqing']);//修改风险度评价
    Route::match(['get','post'],'admin/yanpan/add_anjian', [ 'uses' => 'YanpanController@add_anjian']);//添加案件信息
    Route::match(['get','post'],'admin/yanpan/edit_anjian', [ 'uses' => 'YanpanController@edit_anjian']);//修改案件信息
	
	Route::match(['get','post'],'admin/yanpan/add', [ 'uses' => 'YanpanController@add']); //修改
	Route::match(['get','post'],'admin/yanpan/jibenqingkuang', [ 'uses' => 'YanpanController@jibenqingkuang']); //基本
	Route::match(['get','post'],'admin/yanpan/youliang', [ 'uses' => 'YanpanController@youliang']); //优良
	Route::match(['get','post'],'admin/yanpan/fumian', [ 'uses' => 'YanpanController@fumian']); //负面
	Route::match(['get','post'],'admin/yanpan/heimingdan', [ 'uses' => 'YanpanController@heimingdan']); //黑名单
	Route::match(['get','post'],'admin/yanpan/add2', [ 'uses' => 'YanpanController@add2']); //新增2
	Route::match(['get','post'],'admin/yanpan/add3', [ 'uses' => 'YanpanController@add3']); //新增3
	Route::match(['get','post'],'admin/yanpan/add4', [ 'uses' => 'YanpanController@add4']); //新增4
	Route::match(['get','post'],'admin/yanpan/kaoping2', [ 'uses' => 'YanpanController@kaoping2']); //考评2
	Route::match(['get','post'],'admin/yanpan/addkp', [ 'uses' => 'YanpanController@addkp']); //综合考评弹窗

    //案件管理
    Route::get('admin/case/index', [ 'uses' => 'CaseController@index']);//案件列表
    Route::get('admin/case/daiban', [ 'uses' => 'CaseController@daiban']);//代办案件
    Route::match(['get','post'],'admin/case/create/{id}',[ 'uses'=>'CaseController@create']);//不合格添加案件
    Route::match(['get','post'],'admin/case/caseadd',[ 'uses'=>'CaseController@caseadd']);//自主添加案件

    Route::match(['get','post'],'admin/case/edit/{id}',[ 'uses'=>'CaseController@edit']);//案件处理
    Route::match(['get','post'],'admin/case/no/{id}',[ 'uses'=>'CaseController@no']);//期限整改
    Route::match(['get','post'],'admin/case/upno/{id}',[ 'uses'=>'CaseController@upno']);//整改延期
    Route::match(['get','post'],'admin/case/del/{id}',[ 'uses'=>'CaseController@del']);//删除案件
    Route::match(['get','post'],'admin/case/dt/{id}',[ 'uses'=>'CaseController@dt']);//审核增改时间通过
    Route::match(['get','post'],'admin/case/dj/{id}',[ 'uses'=>'CaseController@dj']);//审核增改时间拒绝
    Route::match(['get','post'],'admin/case/lddt/{id}',[ 'uses'=>'CaseController@lddt']);//领导审批通过
    Route::match(['get','post'],'admin/case/lddj/{id}',[ 'uses'=>'CaseController@lddj']);//领导审批拒绝
    Route::match(['get','post'],'admin/case/delaydt/{id}',[ 'uses'=>'CaseController@delaydt']);//审核延期拖后通过
    Route::match(['get','post'],'admin/case/delaydj/{id}',[ 'uses'=>'CaseController@delaydj']);//审核延期拖后拒绝
    Route::match(['get','post'],'admin/case/delaylddt/{id}',[ 'uses'=>'CaseController@delaylddt']);//领导审核延期拖后通过
    Route::match(['get','post'],'admin/case/delaylddj/{id}',[ 'uses'=>'CaseController@delaylddj']);//领导审核延期拖后拒绝
    Route::get('admin/case/type', [ 'uses' => 'CaseController@type']);//案件类型列表
    Route::match(['get','post'],'admin/case/typeadd',[ 'uses'=>'CaseController@typeadd']);//添加案件类型
    Route::match(['get','post'],'admin/case/edit_type/{id}',['uses'=>'CaseController@edit_type']);//修改案件类型
    Route::get('admin/case/deltype/{id}', [ 'uses' => 'CaseController@deltype']); //删除案件类型
    Route::get('admin/case/fcsq/{id}', [ 'uses' => 'CaseController@fcsq']); //申请复查
    Route::get('admin/case/fucha', [ 'uses' => 'CaseController@fucha']);//复查案件列表
    Route::match(['get','post'],'admin/case/fcedit/{id}',[ 'uses'=>'CaseController@fcedit']);//待办案件处理
    Route::match(['get','post'],'admin/case/fctg/{id}',[ 'uses'=>'CaseController@fctg']);//复查通过
    Route::match(['get','post'],'admin/case/fcjt/{id}',[ 'uses'=>'CaseController@fcjt']);//复查拒绝
    Route::match(['get','post'],'admin/case/zghg/{id}',[ 'uses'=>'CaseController@zghg']);//整改合格
    Route::match(['get','post'],'admin/case/zgbhg/{id}',[ 'uses'=>'CaseController@zgbhg']); //整改不合格
    Route::match(['get','post'],'admin/case/ldzghg/{id}',[ 'uses'=>'CaseController@ldzghg']);//合格领导复查通过
    Route::match(['get','post'],'admin/case/ldzgbhg/{id}',[ 'uses'=>'CaseController@ldzgbhg']);//合格领导复查拒绝
    Route::match(['get','post'],'admin/case/bldzghg/{id}',[ 'uses'=>'CaseController@bldzghg']);//不合格领导复查通过
    Route::match(['get','post'],'admin/case/bldzgbhg/{id}',[ 'uses'=>'CaseController@bldzgbhg']);//不合格领导复查拒绝
    Route::match(['get','post'],'admin/case/wjj/{id}',[ 'uses'=>'CaseController@wjj']);//不合格领导复查文件通过
    Route::match(['get','post'],'admin/case/wjt/{id}',[ 'uses'=>'CaseController@wjt']);//不合格领导复查文件拒绝
    Route::match(['get','post'],'admin/case/tjbhg/{id}',[ 'uses'=>'CaseController@tjbhg']);//提交不合格资料

    Route::match(['get','post'],'admin/case/zhcase',[ 'uses'=>'CaseController@zhcase']);//综合案件查询
    Route::match(['get','post'],'admin/case/buhege',[ 'uses'=>'CaseController@buhege']);//不合格单位列表
    Route::match(['get','post'],'admin/case/cfxq/{id}',[ 'uses'=>'CaseController@cfxq']);//不合格单位列表
    Route::match(['get','post'],'admin/case/liu/{id}',[ 'uses'=>'CaseController@liu']);//流程图

    Route::match(['get','post'],'admin/case/ceshi/{id}',[ 'uses'=>'CaseController@ceshi']);//流程图

    Route::post('admin/case/uploads', ['uses' => 'CaseController@uploads']);//上传文件

    Route::match(['get','post'],'admin/case/xqtong/{id}',[ 'uses'=>'CaseController@xqtong']);//责令限期通知书
    Route::post('admin/case/xquploads', ['uses' => 'CaseController@xquploads']);//限期整改上传文件

    Route::match(['get','post'],'admin/case/zgck/{id}',[ 'uses'=>'CaseController@zgck']);//整改通知书(警方)
    Route::match(['get','post'],'admin/case/qzgck/{id}',[ 'uses'=>'CaseController@qzgck']);//整改通知书(企业)



    Route::match(['get','post'],'admin/case/bhgck/{id}',[ 'uses'=>'CaseController@bhgck']);//复查意见告之书
    Route::post('admin/case/upbhg', ['uses' => 'CaseController@upbhg']);//上传复查意见告之书


    Route::match(['get','post'],'admin/case/cfck/{id}',[ 'uses'=>'CaseController@cfck']);//处罚单
    Route::post('admin/case/upcf', ['uses' => 'CaseController@upcf']);//上传处罚单


    Route::match(['get','post'],'admin/case/delaydtone/{id}',[ 'uses'=>'CaseController@delaydtone']);//延期审核通过理由填写
    Route::post('admin/case/uptyxq', ['uses' => 'CaseController@uptyxq']);//上传处罚单//上传通过延期


    //图标统计
    Route::match(['get','post'],'admin/tj/xzzf', [ 'uses' => 'TjController@xzzf']);//内保行政执法信息统计表
    Route::match(['get','post'],'admin/tj/zabw', [ 'uses' => 'TjController@zabw']);//治安保卫重点单位统计表
    Route::match(['get','post'],'admin/tj/findzabw', ['uses' => 'TjController@findzabw']);//治安保卫重点单位接口
    Route::match(['get','post'],'admin/tj/findzabws', [ 'uses' => 'TjController@findzabws']);//省级领导查看区级 治安保卫重点单位统计表接口
    Route::match(['get','post'],'admin/tj/dwdt', [ 'uses' => 'TjController@dwdt']);//保安从业单位
    Route::match(['get','post'],'admin/tj/zaaf', [ 'uses' => 'TjController@zaaf']);//治安保卫重点单位安防状况统计表
    Route::match(['get','post'],'admin/tj/dwdtxq', [ 'uses' => 'TjController@dwdtxq']);//单位动态详情图
    Route::match(['get','post'],'admin/tj/zabwxq', [ 'uses' => 'TjController@zabwxq']);//治安保卫重点单位安防状况统计表
    Route::match(['get','post'],'admin/tj/zbxq', [ 'uses' => 'TjController@zbxq']);//治安保卫重点单位统计表详情
    Route::match(['get','post'],'admin/tj/zddwajax', [ 'uses' => 'TjController@zddwajax']);//治安保卫重点单位安防状况统计表ajax
    Route::match(['get','post'],'admin/tj/dwdtajax', [ 'uses' => 'TjController@dwdtajax']);//单位动态信息统计表（治安保卫重点单位）ajax

    Route::match(['get','post'],'admin/tj/dwsl', [ 'uses' => 'TjController@dwsl']);//单位数量统计表
    Route::match(['get','post'],'admin/tj/jbsl', [ 'uses' => 'TjController@jbsl']);//单位级别数量统计表
    Route::match(['get','post'],'admin/tj/basl', [ 'uses' => 'TjController@basl']);//保安公司数量统计表
    Route::match(['get','post'],'admin/tj/bwry', [ 'uses' => 'TjController@bwry']);//保卫人员数量统计表
    Route::match(['get','post'],'admin/tj/zdbw', [ 'uses' => 'TjController@zdbw']);//重点部位数量统计表
    Route::match(['get','post'],'admin/tj/zdgw', [ 'uses' => 'TjController@zdgw']);//重点岗位人员数量统计表
    Route::match(['get','post'],'admin/tj/dwzt', [ 'uses' => 'TjController@dwzt']);//单位状态数量统计表
    Route::match(['get','post'],'admin/tj/hylb', [ 'uses' => 'TjController@hylb']);//行业类别数量统计表

    Route::match(['get','post'],'admin/tj/hygk', [ 'uses' => 'TjController@hygk']);//行业管控系统数量统计表


    //曝光台
    Route::match(['get','post'],'admin/bg/addbg',[ 'uses'=>'BgController@addbg']);//添加曝光单位
    Route::match(['get','post'],'admin/bg/bgindex',[ 'uses'=>'BgController@bgindex']);//曝光列表
    Route::match(['get','post'],'admin/bg/edit/{id}',[ 'uses'=>'BgController@edit']);//修改曝光台
    Route::match(['get','post'],'admin/bg/del/{id}',[ 'uses'=>'BgController@del']);//删除曝光台

    Route::match(['get','post'],'admin/bg/tj',[ 'uses'=>'BgController@tj']);//曝光台考核统计
    Route::match(['get','post'],'admin/bg/bgajax',[ 'uses'=>'BgController@bgajax']);//曝光列表ajax
      

    //主页ajax
    Route::match(['get','post'],'admin/Mainapi/index',[ 'uses'=>'MainapiController@index']);//主页ajax
    Route::match(['get','post'],'admin/Mainapi/indextwo',[ 'uses'=>'MainapiController@indextwo']);//主页ajax2
    Route::match(['get','post'],'admin/Mainapi/indexthree',[ 'uses'=>'MainapiController@indexthree']);//主页ajax3

    //地图ajax
    Route::match(['get','post'],'admin/Mapapi/index',[ 'uses'=>'MapapiController@index']);//主页ajax

    //earth
    Route::match(['get','post'],'admin/Earth/index',[ 'uses'=>'EarthController@index']);//earth

    Route::match(['get','post'],'admin/Earth/tjdw',[ 'uses'=>'EarthController@tjdw']);//earth默认ajax
    Route::match(['get','post'],'admin/Earth/tjqdw',[ 'uses'=>'EarthController@tjqdw']);//earth获取ajax

    Route::match(['get','post'],'admin/Earth/tjmj',[ 'uses'=>'EarthController@tjmj']);//earth默认ajax

      //行政许可
     Route::match(['get','post'],'admin/xz/xzindex',[ 'uses'=>'XzController@xzindex']);//列表
     Route::match(['get','post'],'admin/xz/xzadd',[ 'uses'=>'XzController@xzadd']);//添加
     Route::match(['get','post'],'admin/xz/xzedit/{id}',[ 'uses'=>'XzController@xzedit']);//修改
     Route::match(['get','post'],'admin/xz/findcompany',[ 'uses'=>'XzController@findcompany']);//获取单位接口
     Route::match(['get','post'],'admin/xz/xzup/{id}',[ 'uses'=>'XzController@xzup']);//行政许可相关资料列
     Route::match(['get','post'],'admin/xz/add_zxup/{id}/other/{jrid}',[ 'uses'=>'XzController@add_zxup']);//上传相关资料
     Route::match(['get','post'],'admin/xz/edit_zxup/{id}/other/{jrid}',[ 'uses'=>'XzController@edit_zxup']);//查看修改相关资料
     Route::match(['get','post'],'admin/xz/delxz/{id}',[ 'uses'=>'XzController@delxz']);//删除申请项目
     
     Route::match(['get','post'],'admin/xz/view/{id}',[ 'uses'=>'XzController@view']);//打印项目详情

    //保安管理
    Route::match(['get','post'],'admin/baoan/index', [ 'uses' => 'BaoanController@index']);//保安公司列表
    Route::match(['get','post'],'admin/baoan/index2', [ 'uses' => 'BaoanController@index2']);//保安公司列表
    Route::match(['get','post'],'admin/baoan/tab/{id}', [ 'uses' => 'BaoanController@tab']); //修改
    Route::match(['get','post'],'admin/baoan/tab2/{id}', [ 'uses' => 'BaoanController@tab2']); //修改
    Route::match(['get','post'],'admin/baoan/edit/{id}', [ 'uses' => 'BaoanController@edit']); //修改
    Route::match(['get','post'],'admin/baoan/gudong/{id}', [ 'uses' => 'BaoanController@edit']); //修改
    Route::match(['get','post'],'admin/baoan/add', [ 'uses' => 'BaoanController@add']); //添加
    Route::get('admin/baoan/del/{id}', [ 'uses' => 'BaoanController@del']); //删除

    Route::get('admin/baoan/faren/{id}', [ 'uses' => 'BaoanController@faren']);//法人列表
    Route::match(['get','post'],'admin/baoan/add_faren/{id}', [ 'uses' => 'BaoanController@add_faren']); //添加法人
    Route::match(['get','post'],'admin/baoan/edit_faren/{id}', [ 'uses' => 'BaoanController@edit_faren']); //修改法人
    Route::get('admin/baoan/del_faren/{id}', [ 'uses' => 'BaoanController@del_faren']); //删除法人

    Route::get('admin/baoan/baoan/{id}', [ 'uses' => 'BaoanController@baoan']);//保安员列表
    Route::match(['get','post'],'admin/baoan/add_baoan/{id}', [ 'uses' => 'BaoanController@add_baoan']); //添加保安员
    Route::match(['get','post'],'admin/baoan/edit_baoan/{id}', [ 'uses' => 'BaoanController@edit_baoan']); //修改保安员
    Route::get('admin/baoan/del_baoan/{id}', [ 'uses' => 'BaoanController@del_baoan']); //删除保安员

    Route::get('admin/baoan/cailiao/{id}', [ 'uses' => 'BaoanController@cailiao']);//材料
    Route::match(['get','post'],'admin/baoan/cailiao_list/{id}/{uid}', [ 'uses' => 'BaoanController@cailiao_list']); //材料列表
    Route::match(['get','post'],'admin/baoan/add_cailiao/{id}/{uid}', [ 'uses' => 'BaoanController@add_cailiao']); //添加材料
    Route::match(['get','post'],'admin/baoan/edit_cailiao/{id}/other/{jrid}', [ 'uses' => 'BaoanController@edit_cailiao']); //修改材料
    Route::get('admin/baoan/del_cailiao/{id}', [ 'uses' => 'BaoanController@del_cailiao']); //删除材料

    Route::get('admin/baoan/kaohe/{id}', [ 'uses' => 'BaoanController@kaohe']);//考核列表
    Route::match(['get','post'],'admin/baoan/add_kaohe/{id}', [ 'uses' => 'BaoanController@add_kaohe']); //添加考核
    Route::match(['get','post'],'admin/baoan/edit_kaohe/{id}', [ 'uses' => 'BaoanController@edit_kaohe']); //修改考核
    Route::get('admin/baoan/del_kaohe/{id}', [ 'uses' => 'BaoanController@del_kaohe']); //删除考核

    Route::get('admin/baoan/gongsi_kaohe/{id}', [ 'uses' => 'BaoanController@gongsi_kaohe']);//考核列表
    Route::match(['get','post'],'admin/baoan/add_gongsi_kaohe/{id}', [ 'uses' => 'BaoanController@add_gongsi_kaohe']); //添加考核
    Route::match(['get','post'],'admin/baoan/edit_gongsi_kaohe/{id}', [ 'uses' => 'BaoanController@edit_gongsi_kaohe']); //修改考核
    Route::get('admin/baoan/del_gongsi_kaohe/{id}', [ 'uses' => 'BaoanController@del_gongsi_kaohe']); //删除考核



    Route::get('admin/baoan/gudong/{id}', [ 'uses' => 'BaoanController@gudong']);//股东列表
    Route::match(['get','post'],'admin/baoan/add_gudong/{id}', [ 'uses' => 'BaoanController@add_gudong']); //添加股东
    Route::match(['get','post'],'admin/baoan/edit_gudong/{id}', [ 'uses' => 'BaoanController@edit_gudong']); //修改股东
    Route::get('admin/baoan/del_gudong/{id}', [ 'uses' => 'BaoanController@del_gudong']); //删除股东

    Route::get('admin/baoan/guanli/{id}', [ 'uses' => 'BaoanController@guanli']);//管理人员列表
    Route::match(['get','post'],'admin/baoan/add_guanli/{id}', [ 'uses' => 'BaoanController@add_guanli']); //添加管理人员
    Route::match(['get','post'],'admin/baoan/edit_guanli/{id}', [ 'uses' => 'BaoanController@edit_guanli']); //修改管理人员
    Route::get('admin/baoan/del_guanli/{id}', [ 'uses' => 'BaoanController@del_guanli']); //删除管理人员

    //考核项设置
    Route::match(['get','post'],'admin/kaohe/company', [ 'uses' => 'KaoheController@company']);//保安公司考核项
    Route::match(['get','post'],'admin/kaohe/add_company', [ 'uses' => 'KaoheController@add_company']);//添加考核项
    Route::match(['get','post'],'admin/kaohe/edit_company/{id}', [ 'uses' => 'KaoheController@edit_company']);//编辑考核项
    Route::match(['get','post'],'admin/kaohe/del_company/{id}', [ 'uses' => 'KaoheController@del_company']);//删除考核项

    Route::match(['get','post'],'admin/kaohe/baoan', [ 'uses' => 'KaoheController@baoan']);//保安人员考核项
    Route::match(['get','post'],'admin/kaohe/add_baoan', [ 'uses' => 'KaoheController@add_baoan']);//添加考核项
    Route::match(['get','post'],'admin/kaohe/edit_baoan/{id}', [ 'uses' => 'KaoheController@edit_baoan']);//编辑考核项
    Route::match(['get','post'],'admin/kaohe/del_baoan/{id}', [ 'uses' => 'KaoheController@del_baoan']);//删除考核项

    //保安等级设置
    Route::match(['get','post'],'admin/kaohe/dengji', [ 'uses' => 'KaoheController@dengji']);//保安等级
    Route::match(['get','post'],'admin/kaohe/add_dengji', [ 'uses' => 'KaoheController@add_dengji']);//添加保安等级
    Route::match(['get','post'],'admin/kaohe/edit_dengji/{id}', [ 'uses' => 'KaoheController@edit_dengji']);//编辑保安等级
    Route::match(['get','post'],'admin/kaohe/del_dengji/{id}', [ 'uses' => 'KaoheController@del_dengji']);//删除保安等级

    //警情上报
    Route::match(['get','post'],'admin/jq/index',[ 'uses'=>'JqController@index']);//警情上报列表
    Route::match(['get','post'],'admin/jq/addjq',[ 'uses'=>'JqController@addjq']);//添加警情上报
    Route::match(['get','post'],'admin/jq/jqedit/{id}',[ 'uses'=>'JqController@jqedit']);//修改查看警情上报
    Route::match(['get','post'],'admin/jq/del/{id}',[ 'uses'=>'JqController@del']);//删除警情上报

    Route::match(['get','post'],'admin/jq/police/{id}',[ 'uses'=>'JqController@police']);//警员获取企业的通报

    Route::match(['get','post'],'admin/jq/wukuang/{id}',[ 'uses'=>'JqController@wukuang']);//无框查看

    //通知公告

    Route::match(['get','post'],'admin/tz/index',[ 'uses'=>'TzController@index']);//通知公告
    Route::match(['get','post'],'admin/tz/addtz',[ 'uses'=>'TzController@addtz']);//添加通知公告
    Route::match(['get','post'],'admin/tz/tzedit/{id}',[ 'uses'=>'TzController@tzedit']);//修改通知公告
    Route::match(['get','post'],'admin/tz/del/{id}',[ 'uses'=>'TzController@del']);//删除通知公告


    //帮助中心
    Route::match(['get','post'],'admin/bz/index',[ 'uses'=>'BzController@index']);//帮助列表
    Route::match(['get','post'],'admin/bz/addbz',[ 'uses'=>'BzController@addbz']);//添加帮助
    Route::match(['get','post'],'admin/bz/bzedit/{id}',[ 'uses'=>'BzController@bzedit']);//修改帮助 
    Route::match(['get','post'],'admin/bz/del/{id}',[ 'uses'=>'BzController@del']);//删除删除帮助

    //人员审核
    Route::match(['get','post'],'admin/rysh/index',[ 'uses'=>'RyshController@index']);//人员审核列表
    Route::match(['get','post'],'admin/rysh/addrysh',[ 'uses'=>'RyshController@addrysh']);//添加人员审核
    Route::match(['get','post'],'admin/rysh/ryshedit/{id}',[ 'uses'=>'RyshController@ryshedit']);//修改查看人员审核
    Route::match(['get','post'],'admin/rysh/del/{id}',[ 'uses'=>'RyshController@del']);//删除人员生和

    Route::match(['get','post'],'admin/rysh/police/{id}',[ 'uses'=>'RyshController@police']);//警员获取企业的申请审核

    Route::match(['get','post'],'admin/rysh/wukuang/{id}',[ 'uses'=>'RyshController@wukuang']);//无框查看


    //线索举报
    Route::match(['get','post'],'admin/xs/index',[ 'uses'=>'XsController@index']);//线索举报列表
    Route::match(['get','post'],'admin/xs/add',[ 'uses'=>'XsController@add']);//线索举报添加
    Route::match(['get','post'],'admin/xs/edit/{id}',[ 'uses'=>'XsController@edit']);//修改查看线索举报
    Route::match(['get','post'],'admin/xs/del/{id}',[ 'uses'=>'XsController@del']);//删除线索举报
    Route::match(['get','post'],'admin/xs/police/{id}',[ 'uses'=>'XsController@police']);//警员获取
    Route::match(['get','post'],'admin/xs/wukuang/{id}',[ 'uses'=>'XsController@wukuang']);//无框查看


    //建议反馈
    Route::match(['get','post'],'admin/yjfk/index',[ 'uses'=>'YjfkController@index']);//建议反馈列表
    Route::match(['get','post'],'admin/yjfk/add',[ 'uses'=>'YjfkController@add']);//添加建议反馈
    Route::match(['get','post'],'admin/yjfk/edit/{id}',[ 'uses'=>'YjfkController@edit']);//修改查看建议反馈
    Route::match(['get','post'],'admin/yjfk/del/{id}',[ 'uses'=>'YjfkController@del']);//删除建议反馈
    Route::match(['get','post'],'admin/yjfk/police/{id}',[ 'uses'=>'YjfkController@police']);//警员获取
    Route::match(['get','post'],'admin/yjfk/wukuang/{id}',[ 'uses'=>'YjfkController@wukuang']);//无框查看


    //企业排行
    Route::match(['get','post'],'admin/qyph/index',[ 'uses'=>'QyphController@index']);//企业排行

    Route::match(['get','post'],'admin/qyph/leida/{id}',[ 'uses'=>'QyphController@leida']);//企业雷达图

    //警员排行
    Route::match(['get','post'],'admin/mjph/index',[ 'uses'=>'MjphController@index']);//民警排行（民警端）

    //企业排行
    Route::match(['get','post'],'admin/mjph/qiye',[ 'uses'=>'MjphController@qiye']);//企业排行（民警端）

    //企业端实时推送控制器
    Route::match(['get','post'],'admin/push/jq',[ 'uses'=>'PushController@jq']);//推送未读已处理的警情


     //大数据接口相关
     Route::match(['get','post'],'admin/bigapi/getunit',[ 'uses'=>'BigapiController@getunit']);//获取单位数量
     Route::match(['get','post'],'admin/bigapi/getdwxz',[ 'uses'=>'BigapiController@getdwxz']);//获取单位性质数量统计
     Route::match(['get','post'],'admin/bigapi/getdwjib',[ 'uses'=>'BigapiController@getdwjib']);//获取单位级别数量统计
     Route::match(['get','post'],'admin/bigapi/getxingzhi',[ 'uses'=>'BigapiController@getxingzhi']);//获取单位性质数量统计
     Route::match(['get','post'],'admin/bigapi/getzdbw',[ 'uses'=>'BigapiController@getzdbw']);//获取重点部位统计
     Route::match(['get','post'],'admin/bigapi/getjqsb',[ 'uses'=>'BigapiController@getjqsb']);//获取警情上报统计
     Route::match(['get','post'],'admin/bigapi/getrysh',[ 'uses'=>'BigapiController@getrysh']);//获取人员审核统计
     Route::match(['get','post'],'admin/bigapi/getaqjc',[ 'uses'=>'BigapiController@getaqjc']);//获取安全检查统计
     Route::match(['get','post'],'admin/bigapi/getxsjb',[ 'uses'=>'BigapiController@getxsjb']);//获取线索举报统计
     Route::match(['get','post'],'admin/bigapi/getbwry',[ 'uses'=>'BigapiController@getbwry']);//获取保卫人员统计
     Route::match(['get','post'],'admin/bigapi/getzdry',[ 'uses'=>'BigapiController@getzdry']);//获取重点人员统计
     Route::match(['get','post'],'admin/bigapi/getdwzt',[ 'uses'=>'BigapiController@getdwzt']);//获取单位状态统计
     Route::match(['get','post'],'admin/bigapi/gethylb',[ 'uses'=>'BigapiController@gethylb']);//获取行业类别数量统计
     Route::match(['get','post'],'admin/bigapi/bags',[ 'uses'=>'BigapiController@bags']);//获取保安公司数量统计

     Route::match(['get','post'],'admin/bigapi/hygk',[ 'uses'=>'BigapiController@hygk']);//获取行业管控接口统计


     Route::match(['get','post'],'admin/bigapi/getmap',[ 'uses'=>'BigapiController@getmap']);//获取登录人信息


     Route::match(['get','post'],'admin/bigapi/getpolice',[ 'uses'=>'BigapiController@getpolice']);//获取民警数量

     Route::match(['get','post'],'admin/bigapi/policeph',[ 'uses'=>'BigapiController@policeph']);//获取民警综合排行

     Route::match(['get','post'],'admin/bigapi/policexq',[ 'uses'=>'BigapiController@policexq']);//获取民警相关信息


    Route::match(['get','post'],'admin/bigapi/getsltj',[ 'uses'=>'BigapiController@getsltj']);//index2数量统计
    Route::match(['get','post'],'admin/bigapi/getaqjctj',[ 'uses'=>'BigapiController@getaqjctj']);//index2安全检查数量统计
    Route::match(['get','post'],'admin/bigapi/last_ryhc',[ 'uses'=>'BigapiController@last_ryhc']);//最近几条人员核查
    Route::match(['get','post'],'admin/bigapi/last_jqsb',[ 'uses'=>'BigapiController@last_jqsb']);//最近几条人员核查
    Route::match(['get','post'],'admin/bigapi/last_xsjb',[ 'uses'=>'BigapiController@last_xsjb']);//最近几条人员核查

    Route::match(['get','post'],'admin/bigapi/ryhc_detail',[ 'uses'=>'BigapiController@ryhc_detail']);//人员核查详情
    Route::match(['get','post'],'admin/bigapi/jqsb_detail',[ 'uses'=>'BigapiController@jqsb_detail']);
    Route::match(['get','post'],'admin/bigapi/xsjb_detail',[ 'uses'=>'BigapiController@xsjb_detail']);

     //大屏幕显示
    Route::match(['get','post'],'admin/big/index',[ 'uses'=>'BigController@index']);//大屏展示
    Route::match(['get','post'],'admin/big/index2',[ 'uses'=>'BigController@index2']);//大屏展示
    Route::match(['get','post'],'admin/big/index3',[ 'uses'=>'BigController@index3']);//大屏展示


    //打印
    Route::match(['get','post'],'admin/units/print_unit/{id}', [ 'uses' => 'UnitsController@print_unit']); //打印单位
    Route::match(['get','post'],'admin/units/print_faren/{id}', [ 'uses' => 'UnitsController@print_faren']); //打印法人
    Route::match(['get','post'],'admin/units/print_baowei/{id}', [ 'uses' => 'UnitsController@print_baowei']); //打印保卫人员
    Route::match(['get','post'],'admin/units/print_zdry/{id}', [ 'uses' => 'UnitsController@print_zdry']); //打印重点人员
    Route::match(['get','post'],'admin/units/print_zybw/{id}', [ 'uses' => 'UnitsController@print_zybw']); //打印重要部位
    Route::match(['get','post'],'admin/jiancha/print_jiancha/{id}', [ 'uses' => 'JianchaController@print_jiancha']); //打印安全检查
    Route::match(['get','post'],'admin/baoan/print_baoangongsi/{id}', [ 'uses' => 'BaoanController@print_baoangongsi']); //打印保安公司
    Route::match(['get','post'],'admin/baoan/print_faren/{id}', [ 'uses' => 'BaoanController@print_faren']); //打印保安公司法人
    Route::match(['get','post'],'admin/baoan/print_baoan/{id}', [ 'uses' => 'BaoanController@print_baoan']); //打印保安公司保安
    Route::match(['get','post'],'admin/baoan/print_kaohe/{id}', [ 'uses' => 'BaoanController@print_kaohe']); //打印保安公司考核

    //导出
    Route::get('admin/units/export_unit','UnitsController@export_unit');//导出企业
    Route::get('admin/baoan/export_baoan_company','BaoanController@export_baoan_company');//导出保安公司

    //导出
    Route::get('admin/tj/daodwsl','TjController@daodwsl');//导出单位数量
    Route::get('admin/tj/daojbsl','TjController@daojbsl');//导出单位级别数量统计表
    Route::get('admin/tj/daobasl','TjController@daobasl');//导出保安公司数量
    Route::get('admin/tj/daobwry','TjController@daobwry');//导出保卫人员数量统计表
    Route::get('admin/tj/daozdbw','TjController@daozdbw');//导出重点部位
    Route::get('admin/tj/daozdgw','TjController@daozdgw');//导出重点岗位人员数量统计表
    Route::get('admin/tj/daodwzt','TjController@daodwzt');//导出单位状态数量统计表
    Route::get('admin/tj/daodwzt','TjController@daodwzt');//导出单位状态数量统计表
    Route::get('admin/tj/daohylb','TjController@daohylb');//导出行业类别数量统计表
    Route::get('admin/tj/daohygk','TjController@daohygk');//导出行业管控系统数量统计表

    //行业字段设置
    Route::match(['get','post'],'admin/units/field/{id}', ['uses' => 'UnitsController@field']);
    Route::match(['get','post'],'admin/units/add_field/{id}', ['uses' => 'UnitsController@add_field']); //添加行业字段
    Route::match(['get','post'],'admin/units/edit_field/{id}', ['uses' => 'UnitsController@edit_field']); //修改行业字段
    Route::get('admin/units/del_field/{id}', ['uses' => 'UnitsController@del_field']); //删除行业字段
    Route::post('admin/units/save_field_sort',['uses' => 'UnitsController@save_field_sort']);//排序

    //安全检查项设置
    Route::match(['get','post'],'admin/units/aqjc/{id}/{type}', ['uses' => 'UnitsController@aqjc']);
    Route::match(['get','post'],'admin/units/add_aqjc/{id}/{type}', ['uses' => 'UnitsController@add_aqjc']); //添加安全检查项
    Route::match(['get','post'],'admin/units/edit_aqjc/{id}/{type}', ['uses' => 'UnitsController@edit_aqjc']); //修改安全检查项
    Route::get('admin/units/del_aqjc/{id}', ['uses' => 'UnitsController@del_aqjc']); //删除安全检查项
    Route::post('admin/units/save_aqjc_sort',['uses' => 'UnitsController@save_aqjc_sort']);//排序

    //企业账号审核
    Route::get('admin/user/shenhe_qiye','UserController@shenhe_qiye');

    //通过审核
    Route::get('admin/user/tongguo/{id}','UserController@tongguo');

});

$router->group(['namespace' => 'Admin'], function () {
    //APP接口
    Route::post('admin/api/login', ['uses' => 'ApiController@login']);//登录
    Route::post('admin/api/baoweirenyuan_list', ['as' => 'admin.api.baoweirenyuan_list', 'uses' => 'ApiController@baoweirenyuan_list']);//获取保卫人员列表

    Route::post('admin/api/company_list', ['as' => 'admin.api.company_list', 'uses' => 'ApiController@company_list']);//获取企业列表
    Route::post('admin/api/company_info', ['as' => 'admin.api.company_info', 'uses' => 'ApiController@company_info']);//获取企业信息
    Route::post('admin/api/company_edit', ['as' => 'admin.api.company_edit', 'uses' => 'ApiController@company_edit']);//修改企业信息

    Route::post('admin/api/baoweirenyuan_list', ['as' => 'admin.api.baoweirenyuan_list', 'uses' => 'ApiController@baoweirenyuan_list']);//获取保卫人员列表
    Route::post('admin/api/baoweirenyuan_add', ['as' => 'admin.api.baoweirenyuan_add', 'uses' => 'ApiController@baoweirenyuan_add']);//添加保卫人员
    Route::post('admin/api/baoweirenyuan_edit', ['as' => 'admin.api.baoweirenyuan_edit', 'uses' => 'ApiController@baoweirenyuan_edit']);//修改保卫人员
    Route::post('admin/api/baoweirenyuan_del', ['as' => 'admin.api.baoweirenyuan_del', 'uses' => 'ApiController@baoweirenyuan_del']);//删除保卫人员

    Route::post('admin/api/zhongyaobuwei_list', ['as' => 'admin.api.baoweirenyuan_list', 'uses' => 'ApiController@baoweirenyuan_list']);//获取重要部位列表

    Route::post('admin/api/uploadfile', ['as' => 'admin.api.uploadfile', 'uses' => 'ApiController@uploadfile']);

    Route::post('admin/api/add_jiancha', ['uses' => 'ApiController@add_jiancha']);//添加安全检查
    Route::post('admin/api/save_jiancha', ['uses' => 'ApiController@save_jiancha']);//保存安全检查

    Route::post('admin/api/qiye_list', ['uses' => 'ApiController@qiye_list']);//有警情的企业列表
    Route::post('admin/api/jq_list', ['uses' => 'ApiController@jq_list']);//警情上报列表
    Route::post('admin/api/jq_info', ['uses' => 'ApiController@jq_info']);//警情详情
    Route::post('admin/api/jq_chuli', ['uses' => 'ApiController@jq_chuli']);//警情处理

    Route::post('admin/api/xsqy_list', ['uses' => 'ApiController@xsqy_list']);//有线索的企业列表
    Route::post('admin/api/xs_list', ['uses' => 'ApiController@xs_list']);//线索上报列表
    Route::post('admin/api/xs_info', ['uses' => 'ApiController@xs_info']);//线索详情
    Route::post('admin/api/xs_chuli', ['uses' => 'ApiController@xs_chuli']);//线索处理

    Route::post('admin/api/yjqy_list', ['uses' => 'ApiController@yjqy_list']);//有意见的企业列表
    Route::post('admin/api/yj_list', ['uses' => 'ApiController@yj_list']);//意见上报列表
    Route::post('admin/api/yj_info', ['uses' => 'ApiController@yj_info']);//意见详情
    Route::post('admin/api/yj_chuli', ['uses' => 'ApiController@yj_chuli']);//意见处理

    Route::match(['get','post'],'admin/api/police_ph', ['uses' => 'ApiController@police_ph']);//默认警员的数据
    Route::match(['get','post'],'admin/qyph/getnew', ['uses' => 'QyphController@getnew']);//企业排行接口

    Route::post('admin/api/qiye_list2', ['uses' => 'ApiController@qiye_list2']);//有人员审核的企业列表
    Route::post('admin/api/rysh_list', ['uses' => 'ApiController@rysh_list']);//人员列表
    Route::post('admin/api/rysh_info', ['uses' => 'ApiController@rysh_info']);//核查详情
    Route::post('admin/api/ry_shenhe', ['uses' => 'ApiController@ry_shenhe']);//人员审核

    Route::post('admin/api/tongzhi_list', ['uses' => 'ApiController@tongzhi_list']);//通知列表
    Route::post('admin/api/tongzhi_detail', ['uses' => 'ApiController@tongzhi_detail']);//通知详情
    Route::post('admin/api/bangzhu_list', ['uses' => 'ApiController@bangzhu_list']);//帮助列表
    Route::post('admin/api/bangzhu_detail', ['uses' => 'ApiController@bangzhu_detail']);//帮助详情

    Route::post('admin/api/member_info', ['uses' => 'ApiController@member_info']);//个人中心

    Route::post('admin/api/search_qiye', ['uses' => 'ApiController@search_qiye']);//搜索企业

    Route::post('admin/api/self_qiye', ['uses' => 'ApiController@self_qiye']);//自己检查过的企业

    Route::post('admin/api/other_qiye', ['uses' => 'ApiController@other_qiye']);//别人检查过的企业

    Route::post('admin/api/jiancha_list', ['uses' => 'ApiController@jiancha_list']);//安全检查列表

    Route::post('admin/api/jiancha_detail', ['uses' => 'ApiController@jiancha_detail']);//安全检查详情

    Route::post('admin/api/daishenhe', ['uses' => 'ApiController@daishenhe']);//信息待审核企业

    Route::post('admin/api/shenhe_detail', ['uses' => 'ApiController@shenhe_detail']);//审核详情

    Route::post('admin/api/other', ['uses' => 'ApiController@other']);//法人，保卫，重点岗位，重要部位修改记录

    Route::post('admin/api/shenhe', ['uses' => 'ApiController@shenhe']);//审核

    Route::post('admin/api/upload', ['uses' => 'ApiController@upload']);//上传到公安端
});

Route::get('admin', function () {
    if(auth::user()->role_id == 22){
        return redirect('/admin/index');
    }else{
        return redirect('/admin/index/home');
    }
});

